[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function read_cursor - reads cursor information
Syntax unsigned int read_cursor(int *row, int *col);
Prototype in video.h
Remarks reads the cursor location and scan lines via
INTerrupts.
Return value returns the scan lines of the cursor as a word, the
high order byte the start and low order byte the
end.
See also cursor_blink(), cursor_flip(), cursor_off(),
cursor_on(), getcursor(), set_cursor(),
setcursor(), whereh(), wherev()
Example #include <video.h>
main()
{
int x,y;
unsigned int scan;
scan = read_cursor(&x,&y);
printf("Scan start %d and end %d\n",
scan&0xFF00, scan&0xFF);
}
Program output Scan start 6 and end 7 /* on CGA */
See Also:
cursor_on()
cursor_off()
getcursor()
setcursor()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson